package com.guogee.pdb.utils;

import com.guogee.pdb.utils.Log.Level;



/**
 * @ClassName: BuildHelper.java
 * @Description: TODO
 * @author xieguangwei
 * @date 2015年5月7日
 * 
 */
public class BuildHelper {
   private static Build mBuild = Build.Product;
	public enum Build {
		Dev, Test, Product,
	};


	public static boolean isProduct() {
		switch (mBuild) {
		case Product:
			return true;
		default:
			return false;
		}
	}
	
	public static boolean isTest() {
		switch (mBuild) {
		case Test:
			return true;
		default:
			return false;
		}
	}

	
	public static Level getLogLevel() {
		switch (mBuild) {
		case Dev:
		case Test:
			return Level.verbose;
		default:
			return Level.error;
		}
	}


	 public static void setBuildType(Build type){
		  mBuild = type;
	  }
}
